<?php

require_once('inc.config.php');
$sid = $_GET["sid"];

if(!isset($sid)){
	header("Location:index.php");
	exit;
}

$aid = $myHouse->getPublisherIdByHid($sid, 0);

if(__login__==0||$aid!=__user_id__){
	header("Location:index.php");
	exit;
}


$useTemplate   = 'agent_admin_shedit.html';

$page = new QuickSkin ($useTemplate);

template_ini($page);


$sinfo = $myHouse->getShouseInfo($sid);

$style = explode("/" , $sinfo["style"]);
$sinfo["style1"] = $style[0];
$sinfo["style2"] = $style[1];
$sinfo["style3"] = $style[2];

$floor = explode("/" , $sinfo["floor"]);
$sinfo["floor1"] = $floor[0];
$sinfo["floor2"] = $floor[1];

$page->assign($sinfo);

require_once("agent_admin_left.php");

$page->output();


ob_end_flush();

?>
